package cn.edu.sdjzu.xg.bysj.service;

import cn.edu.sdjzu.xg.bysj.domain.Condition;
import cn.edu.sdjzu.xg.bysj.domain.Pagination;
import cn.edu.sdjzu.xg.bysj.domain.Teacher;
import cn.edu.sdjzu.xg.bysj.exception.BysjException;

import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

public interface TeacherServiceInterface {
    public Teacher find(int id) throws SQLException, BysjException;
    public Collection<Teacher> findAll(List<Condition> conditions_json) throws SQLException, BysjException;
    public Collection<Teacher> findAll(List<Condition> conditionList, Pagination pagination) throws SQLException, BysjException;
    public String add(Teacher teacher) throws SQLException,BysjException;
    public String delete(int id) throws SQLException,BysjException;
    public String update(Teacher teacher) throws SQLException, BysjException;
}
